﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RichECMS.ServerPages
{
    public partial class TopMain : Util.BasePage.BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LiteralLoginUser.Text = State.LoginUser.LoginName;
        }
        protected void btnLogout_Click(object sender, EventArgs e)
        {
            //清除当前Session对象
            Session.Clear();
            //清除当前Application对象
            Application.Clear();
            //清除登陆验证票据
            System.Web.Security.FormsAuthentication.SignOut();
            AlertAndExecOther("已注销！", "正在跳转至系统登陆页，请稍等……", " window.parent.location='" + System.Web.HttpContext.Current.Request.Path.Replace("ServerPages/Top.aspx", "") + "login.aspx'");
        }
    }
}